Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major update of Telescope class #631

Merged
merged 53 commits into from
Nov 28, 2024
Merged

Major update of Telescope class #631

merged 53 commits into from
Nov 28, 2024

Conversation

anawas
Copy link
Collaborator

@anawas anawas commented Nov 7, 2024

Baseline functions of the Telescope class (e.g. max_baseline or get_stations_wgs84) now have the same output for OSKAR and RASCIL backends. Thus, the two code examples in issue #629 now work as expected. The main work was done in Telescope::constructor() function.

Other things that have been changed or adapted:

  • Renamed function get_baselines_wgs84 to get_stations_wgs84 because it always returned coordinates of stations, not baselines
  • Replaced numpy.loadtxt() with more robust class method __read_layout_txt() (in Telescope::_get_station_info)
  • Added some tests cases to test_telescope_baselines.py
  • Fixed some typos and added few lines of comments.

anawas added 29 commits October 29, 2024 09:41
Copy link
Collaborator

@Lukas113 Lukas113 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Some comments to address.

The failing CI-pipeline is not related to this PR, thus the test is ignored for this review.

karabo/simulation/sky_model.py Outdated Show resolved Hide resolved
karabo/simulation/coordinate_helper.py Show resolved Hide resolved
karabo/simulation/telescope.py Outdated Show resolved Hide resolved
karabo/simulation/telescope.py Show resolved Hide resolved
karabo/simulation/telescope.py Outdated Show resolved Hide resolved
karabo/test/test_rascil_telescope_setup.py Outdated Show resolved Hide resolved
karabo/test/test_telescope_baselines.py Show resolved Hide resolved
@anawas
Copy link
Collaborator Author

anawas commented Nov 26, 2024

I would like to close this pull request. I addressed most of the comments. But there is more work to do for the Telescope class (see issue #633). Tackling these issues here would clearly overload this PR. Thus I suggest to address the open comment regarding the telescope.add_antenna_to_station function there.

@Lukas113
Copy link
Collaborator

I would like to close this pull request. I addressed most of the comments. But there is more work to do for the Telescope class (see issue #633). Tackling these issues here would clearly overload this PR. Thus I suggest to address the open comment regarding the telescope.add_antenna_to_station function there.

What's the reason why you want this to be merged asap? Because of the release? I personally don't like to introduce potential misbehavior into main, when the issue should get addressed anyway. I am more in favor of leaving this PR open and you can focus on the other issue in a separate branch in case you want to merge it before the release.

@Lukas113 Lukas113 merged commit 420469a into main Nov 28, 2024
1 check passed
@Lukas113 Lukas113 deleted the aw_fix_telescope branch November 28, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants